<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      >

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <link href="estilo/manutencaoCss.css" rel="stylesheet" type="text/css" />

        <title>Avaliação</title>
    </h:head>

    <h:body>

        <p:layout fullPage="true" >
            <ui:insert name="top">
                <p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
                    <p:graphicImage value="images/infnet.png" style="float:right"/>
                    <h:outputText value="Bem vindo ao sistema de avaliação acadêmico" style="font-size: 20px;padding: 25px; margin-top: 15px;" />
                    <h:form>
                        <h:commandButton value="Sair" action="#{usuarioMBean.logout}" style="float:right; margin-right: 100px;" />
                
                    </h:form>
                </p:layoutUnit>

            </ui:insert>
            <p:layoutUnit position="west" size="200" header="Right" resizable="true" collapsible="true" effect="drop">
                <h:form id="formBotoes">
                    <ui:insert name="left">                       
                        <p:menu>
                            <p:submenu label="Usuarios" rendered="#{usuarioMBean.tipo eq 'AD'}">
                                <p:menuitem value="Aluno" outcome="aluno" />
                                <p:menuitem value="Professor" outcome="professor" />  
                                <p:menuitem value="Administrador" outcome="administrador" />                                                   
                            </p:submenu>
                            <p:submenu label="Curso" rendered="#{usuarioMBean.tipo eq 'AD'}">
                                <p:menuitem value="Turma" outcome="turma" /> 
                                <p:menuitem value="Modulo" outcome="modulo" />
                                <p:menuitem value="Curso" outcome="curso" /> 
                            </p:submenu>
                            <p:submenu label="Questionario">                           
                                <p:menuitem value="Questao" outcome="questao" rendered="#{usuarioMBean.tipo eq 'AD'}"/>
                                <p:menuitem value="Item Avaliacao" outcome="item" rendered="#{usuarioMBean.tipo eq 'AD'}"/>
                                <p:menuitem value="Avaliacao" outcome="avaliacao" rendered="#{usuarioMBean.tipo eq 'AD'}"/>
                                <p:menuitem value="Questionario" outcome="preenchimento" rendered="#{usuarioMBean.tipo eq 'A'}" />
                            </p:submenu>
                            <p:submenu label="Estrutura" rendered="#{usuarioMBean.tipo eq 'AD'}">                                
                                <p:menuitem value="Sala" outcome="sala" />
                                <p:menuitem value="Predio" outcome="predio" />                                                           
                            </p:submenu>
                        </p:menu>
                    </ui:insert>
                </h:form>
            </p:layoutUnit>

            <p:layoutUnit position="center">
                <h:form id="formConteudo">  
                    <p:messages id="mensagens" autoUpdate="true" />
                    <ui:insert name="content">

                        cenntroto

                    </ui:insert>

                </h:form>  

            </p:layoutUnit>

        </p:layout>
 <p:panel id="panelModais">
        <ui:insert name="modais">
           
                
            

        </ui:insert>
     </p:panel>
    </h:body>

</html>
